//
//  LSTimeSelectCell.m
//  LookScore
//
//  Created by wws on 2018/4/11.
//  Copyright © 2018年 ChongQingXunTiCompany. All rights reserved.
//

#import "LSTimeSelectCell.h"

@implementation LSTimeSelectCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addContenView];
    }
    
    return self;
}

- (void)addContenView{
    
    UILabel * label = [[UILabel alloc] init];
    label.textColor = LSTitleGrayColor2;
    label.font = LSFontSize12;
    label.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:label];
    self.myTitleLabel = label;
    
    
    label.sd_layout
    .centerXEqualToView(self.contentView)
    .centerYEqualToView(self.contentView)
    .autoHeightRatio(0);
    [label setSingleLineAutoResizeWithMaxWidth:180];
    
    
    UIView * selectView = [[UIView alloc] initWithFrame:self.frame];
    selectView.backgroundColor = LSBackGroundColor;
    self.selectedBackgroundView = selectView;
    
    
    
    UIImageView * imageView = [[UIImageView alloc] init];
    imageView.backgroundColor = [UIColor redColor];
    [selectView addSubview:imageView];
    self.myImageView = imageView;
    
//    imageView.hidden = YES;
    imageView.sd_layout
    .rightSpaceToView(selectView, 10)
    .centerYEqualToView(selectView)
    .heightIs(20)
    .widthIs(20);
    
    UIView * lineView = [[UIView alloc] init];
    lineView.backgroundColor = LSLineGrayColor;
    [self.contentView addSubview:lineView];
    
    lineView.sd_layout
    .leftEqualToView(self.contentView)
    .rightEqualToView(self.contentView)
    .bottomEqualToView(self.contentView)
    .heightIs(1);
    
}

@end
